package com.sqstudio.exercise.chapter3{
	
	import flash.events.Event;
	
	import org.papervision3d.objects.primitives.Arrow;
	import org.papervision3d.view.BasicView;

	[SWF(width="800",height="600")]
	public class ArrowExample extends BasicView
	{
		private var arrow:Arrow;
		public function ArrowExample(viewportWidth:Number=800, viewportHeight:Number=600, scaleToStage:Boolean=true, interactive:Boolean=false, cameraType:String="Target")
		{
			super(viewportWidth, viewportHeight, scaleToStage, interactive, cameraType);
			stage.frameRate = 40;
			init();
			this.startRendering();
		}
		
		private function init():void{
			this.arrow = new Arrow();
			scene.addChild(this.arrow);
			arrow.scale = 0.5;
			arrow.localRotationX = 45;
		}
		
		override protected function onRenderTick(event:Event=null):void
		{
			super.onRenderTick(event);
		}
	}
}